package com.oracle.containers.set;

import java.util.TreeSet;

/**
 * @author zhouyanxiang
 * @create 2020-08-2020/8/17-18:14
 */
public class TreeSetReview {

    public static void main(String[] args) {
        TreeSet<Integer> treeSet = new TreeSet<>();

        for (int i = 0; i < 10; i++) {
            treeSet.add(2*i);
        }

        for (int i = 0; i < 10; i++) {
            treeSet.add(100*i);
        }

        for (Integer tree : treeSet){
            System.out.println(tree);
        }
    }

}
